import { TShop } from "../../../../Message/Db/Tables/TShop";
import { ShopItemInfo } from "./ShopItemInfo";
type int = number;
//class ShopInfo
    
    export  class ShopInfo
    {
        constructor()
        {
            
            this._items = new Array<any>();
            return;
        }

        public set items(arg1: Array<any>)
        {
            this._items = arg1;
            return;
        }

        public get items(): Array<any>
        {
            return this._items;
        }

        public get tshop(): TShop
        {
            return this._tshop;
        }

        public set tshop(arg1: TShop)
        {
            this._tshop = arg1;
            if (this._tshop) 
            {
                this.code = this._tshop.code;
                this.name = this._tshop.name;
                this.unit = this._tshop.unit;
            }
            return;
        }

        public addShopItemInfo(arg1: ShopItemInfo): void
        {
            this._items.push(arg1);
            return;
        }

        /* internal */ /* var */_items: Array<any>;

        /* internal */ /* var */_tshop: TShop;

        public /* var */code: int;

        public /* var */name: string;

        public /* var */unit: int;
    }
